﻿namespace EyeOpen.Security.Data
{
    using EyeOpen.Data;
    using EyeOpen.Domain;

    public abstract class SecurityDataContext<T> : BaseDataContext<T>, ISecurityDataContext where T : class, ISecurityDataContext
    {
        public SecurityDataContext(T dataContext)
            : base(dataContext)
        {
        }

        public void Add(User user)
        {
            DataContext.Add(user);
        }

        public void Add(Credential credential)
        {
            DataContext.Add(credential);
        }

        public void Add(Meta meta)
        {
            DataContext.Add(meta);
        }
    }
}